﻿@model Fmis10_1.Models.Referee

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Default.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Referee</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonId, "Person")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PersonId", String.Empty)
            @Html.ValidationMessageFor(model => model.PersonId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SeniorReferee)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SeniorReferee)
            @Html.ValidationMessageFor(model => model.SeniorReferee)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.YouthReferee)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.YouthReferee)
            @Html.ValidationMessageFor(model => model.YouthReferee)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerStartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerStartDate)
            @Html.ValidationMessageFor(model => model.CareerStartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchAllowance)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchAllowance)
            @Html.ValidationMessageFor(model => model.MatchAllowance)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TravelAllowance)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TravelAllowance)
            @Html.ValidationMessageFor(model => model.TravelAllowance)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JerseySize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JerseySize)
            @Html.ValidationMessageFor(model => model.JerseySize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrainingShoes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrainingShoes)
            @Html.ValidationMessageFor(model => model.TrainingShoes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HobnailedBoots)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HobnailedBoots)
            @Html.ValidationMessageFor(model => model.HobnailedBoots)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchesOffciatedNational)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchesOffciatedNational)
            @Html.ValidationMessageFor(model => model.MatchesOffciatedNational)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchesOffciatedInternational)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchesOffciatedInternational)
            @Html.ValidationMessageFor(model => model.MatchesOffciatedInternational)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchesAppointedNational)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchesAppointedNational)
            @Html.ValidationMessageFor(model => model.MatchesAppointedNational)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchesAppointedInternational)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchesAppointedInternational)
            @Html.ValidationMessageFor(model => model.MatchesAppointedInternational)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicComment)
            @Html.ValidationMessageFor(model => model.PublicComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RefereeCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RefereeCode)
            @Html.ValidationMessageFor(model => model.RefereeCode)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
